package com.zprmb.udzt.bean;

import org.json.JSONObject;

public class ProductV4_Bean extends BaseBean<ProductV4_Bean> {

	public String id;
	public String loanType;
	public String loanTitle;
	public String restrict;// 限投
	public String method;
	public String minAmount;// 起投
	public int years;
	public int months;
	public int days;
	public double rateAdd;
	public double originRate;
	public double progress;
	public String progress_str;
	public int amount;
	public int intrateAdd;
	public String time;
	public String requestType;// 图标字段

	public ProductV4_Bean parseJSON(JSONObject inputJsonObj) {

		id = inputJsonObj.optString("id");
		loanType = inputJsonObj.optString("loanType");
		loanTitle = inputJsonObj.optString("loanTitle");
		restrict = inputJsonObj.optString("restrict");
		method = inputJsonObj.optString("method");
		minAmount = inputJsonObj.optString("minAmount");
		years = inputJsonObj.optInt("years");
		months = inputJsonObj.optInt("months");
		days = inputJsonObj.optInt("days");
		rateAdd = inputJsonObj.optDouble("rateAdd");
		originRate = inputJsonObj.optDouble("originRate");
		progress = inputJsonObj.optDouble("progress");
		amount = inputJsonObj.optInt("amount");
		intrateAdd = inputJsonObj.optInt("rateAdd");
		time = inputJsonObj.optString("time");
		requestType = inputJsonObj.optString("requestType");
		progress_str = inputJsonObj.optString("progress");
		return this;
	}

}
